import yagmail
def send_mail(a):
    mail=yagmail.SMTP(user="3372266165@qq.com",password="yszczxfhrtsxdbch",host="smtp.qq.com")
    mail.send(to="3372266165@qq.com",subject="模拟报告",contents="报告",attachments=a)